﻿using System.Security.Principal;

namespace SubSonic.Security{
    public class SubSonicIdentity : IIdentity{

        public SubSonicIdentity(string name, bool isAuthenticated){
            _Name = name;
            _IsAuthenticated = isAuthenticated;
        }

        private string _Name = string.Empty;
        private bool _IsAuthenticated = false;

        public string AuthenticationType{
            get { return "SubSonic"; }
        }

        public string Name{
            get { return _Name; }
        }

        public bool IsAuthenticated{
            get { return _IsAuthenticated; }
        }

    }
}
